import { ChatType, MessageType } from "./message.ts";

interface ISession {
  id?: number;
  ownerId: number;
  toId: number; //发送给谁的
  sessionId: string;
  chatType: ChatType;
  sessionType: MessageType;
  content: string;
  unread?: number;
  isPinned?: number;
  isDel?: number;
  updatedAt?: string;
}

interface ITogglePinSessionParams {
  sessionId: string;
  ownerId: number;
  pinState: boolean;
}

export type { ISession, ITogglePinSessionParams };
